/*
 * 	simui.h
 *
 * 	Created on: August 14, 2011
 *      Authors: Lane Aasen, Nikholas Gaffney, Michael Rosenberger, Dylan Swiggett
 */

#ifndef SIMUI_H_
#define SIMUI_H_

#include <gtk/gtk.h>
#include <unistd.h>
#include <pthread.h>
#include <signal.h>

#define	WDT	800	/*width of the window*/
#define HGT	500	/*height of ^^^*/	

/*handles the window configuration signal*/
gboolean win_config(GtkWidget* da, GdkEventConfigure* event, gpointer user_data);

/*handles the window expose signal*/
gboolean win_expose(GtkWidget* da, GdkEventExpose* event, gpointer user_data);

/*draws on the window*/
void *do_draw(void *ptr);

/*timer for the window which is called 30 times per second*/
gboolean timer_exe(GtkWidget * window);

/*initializes GTK threads, the window and other GUI objects*/
int main (int argc, char *argv[]);

#endif /* SIMUI_H_ */
